package cn.dxh.stagefinal.service;

import cn.dxh.stagefinal.bean.Business;
import cn.dxh.stagefinal.bean.Matter;
import cn.dxh.stagefinal.bean.Vehicle;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.List;

/**
 * @author: Panjianwei
 * @date: 2019/12/10 15:07
 * 代码是一门艺术，需要我们细细用心品味！
 */
public interface BusinessService {
//    1.查询所有车辆
    public List<Vehicle> findVehicleAll();
//    2.添加数据
    public int addBusiness(Business business, HttpSession session);
//    3.模查+分页
    public  PageInfo<Business>findBusinessAll(int itemsid, String relation, String recorddate, int account,int pageindex,int pagesize);
//    4.修改
//    (1)主键查询
    public Business findbybid(int bid);
//    (2)修改
    public int udpatebusiness(Business business);
//    5.删除
    public int updatestatu(int bid);
//    6.交易确认
    public int updatecheck(int bid);
//    7.算出进出部合计
    public List<Float> math();

}
